package com.sandy.gorm7

import groovy.transform.CompileStatic
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.ApplicationArguments
import org.springframework.boot.ApplicationRunner
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.EnableAutoConfiguration
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration
import org.springframework.context.annotation.ComponentScan

@SpringBootApplication(exclude = HibernateJpaAutoConfiguration)
@CompileStatic
class Gorm7Application implements ApplicationRunner{
    @Autowired
    BootStrap bootStrap

    static void main(String[] args) {
        SpringApplication.run(Gorm7Application, args)
    }

    void run(ApplicationArguments args) throws Exception {
        bootStrap.init()
    }

}
